<?php
class Tools {
	public static function dieObject($object, $kill = true) {
		echo '<xmp style="text-align: left;">';
		print_r ( $object );
		echo '</xmp><br />';
		
		if ($kill)
			die ( 'END' );
		
		return $object;
	}
	
	/*
	 * Imprime con formato cualquier variable
	 */
	public static function d($elemento, $kill = true) {
		return (Tools::dieObject ( $elemento, $kill ));
	}
}
?>